package com.mall.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 订单详情视图
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/25 15:57
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "订单详情视图")
public class OrderItemVO {
    @Schema(description = "订单详情id")
    private Long id;
    @Schema(description = "商品id")
    private Long itemId;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "商品图片")
    private String image;
    @Schema(description = "商品描述")
    private String description;
    @Schema(description = "商品分类id")
    private Long categoryId;
    @Schema(description = "商品分类名称")
    private String categoryName;
    @Schema(description = "商品数量")
    private Integer quantity;
    @Schema(description = "商品单价")
    private Double price;
    @Schema(description = "商品小计总价")
    private Double subtotal;
}
